import { Transform, Type } from "class-transformer"
import { IsInt } from "class-validator"

export class Pagination {
    @Transform(({ value }) => parseInt(value, 10))
    @Type(() => Number)
    @IsInt()
    page: number

    @Transform(({ value }) => parseInt(value, 10))
    @Type(() => Number)
    @IsInt()
    pageSize: number
}